Skip to content

api.FileSystemFileHandle.move available in Chrome #26876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jozefchutka opened this issue May 22, 2025 · 2 comments
Open

api.FileSystemFileHandle.move available in Chrome #26876

jozefchutka opened this issue May 22, 2025 · 2 comments
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API info needed This needs more information to review or act on.

Comments

@jozefchutka
Copy link

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

FileSystemHandle API: move is reported as not supported for Chrome, however it exists and works in runtime.

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

Expected to see it is supported

Did you test this? If so, how?

FileSystemFileHandle.prototype.move
// -- > ƒ move() { [native code] }

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://github.com/mdn/browser-compat-data/blob/main/api/FileSystemHandle.json
https://caniuse.com/mdn-api_filesystemhandle_move
whatwg/fs#10

Do you have anything more you want to share?

It somehow went off radar of chromium devs even though it was delivered in past. It is hard to find any traces:
https://chromestatus.com/feature/5640802622504960
https://chromestatus.com/feature/6271579653144576

MDN URL

No response

MDN metadata

No response

@jozefchutka jozefchutka added the needs triage This issue needs to be confirmed label May 22, 2025
@caugner
Copy link
Contributor

caugner commented May 23, 2025

Overall, it is not obvious to me what's really supported.

@jozefchutka Could you try what works on https://file-system-terminal.glitch.me/ without enabling the experimental features flags? It might be that the method is exposed, but doesn't work.

@caugner caugner added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API info needed This needs more information to review or act on. and removed needs triage This issue needs to be confirmed labels May 23, 2025
@caugner caugner changed the title FileSystemFileHandle.move available in Chrome api.FileSystemFileHandle.move available in Chrome May 23, 2025
@jozefchutka
Copy link
Author

move works for me in chrome 136 with both FS and OPFS using glitch.me demo

I am using the following ts type in my code which works with chrome, safari and firefox

declare global {
	interface FileSystemFileHandle {
		readonly move:(directory:FileSystemDirectoryHandle, newName:string) => Promise<void>;
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API info needed This needs more information to review or act on.
Projects
None yet
Development

No branches or pull requests

2 participants